#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int compress(char s[])
{
	int n, m, i, j = 0;
	char t[100];
	n = strlen(s);
	for (i = 0; i < n;)
	{
		if (s[i] == s[i + 1])
			i++;
		else
		{
			t[j] = s[i];
			j++; i++;
		}
	}
	t[j] = '\0';
	m = strlen(t);
	puts(t);
	printf("number is %d", n - m);
}
main()
{
	int compress(char s[]);
	char s[100];
	printf("Plesae input a string:");
	gets(s);
	compress(s);
}